package com.tedu.lingmaagent.domain;


import org.bson.types.ObjectId;
import org.springframework.data.annotation.Id;

public class ChatMessages {
    //文档中的key
    @Id
    private ObjectId id;

//用户提供的id
    private int memoryId;

    //文档中的值
    private String content;//存储当前聊天记录列表的json字符串


    public ChatMessages(ObjectId id, int memoryId, String content) {
        this.id = id;
        this.memoryId = memoryId;
        this.content = content;
    }
    public ChatMessages() {
    }

    @Override
    public String toString() {
        return "ChatMessages{" +
                "id=" + id +
                ", memoryId=" + memoryId +
                ", content='" + content + '\'' +
                '}';
    }

    public ObjectId getId() {
        return id;
    }

    public void setId(ObjectId id) {
        this.id = id;
    }

    public int getMemoryId() {
        return memoryId;
    }

    public void setMemoryId(int memoryId) {
        this.memoryId = memoryId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
